//package com.plian.system.controller.transfer;
//
//import com.baomidou.mybatisplus.core.toolkit.Wrappers;
//import com.plian.system.config.AppKeySign;
//import com.plian.system.dto.transfer.DataPlatSign;
//import com.plian.system.entity.fr.bank.BankKey;
//import com.plian.system.entity.lg.LawDispute;
//import com.plian.system.entity.lg.LawDisputeSummary;
//import com.plian.system.entity.lg.MlegalProceedingsArbitration;
//import com.plian.system.model.R;
//import com.plian.system.model.token.PassToken;
//import com.plian.system.service.fr.bank.IBankKeyService;
//import com.plian.system.service.transfer.ILawDisputeTransferService;
//import io.swagger.annotations.Api;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//@RestController
//@RequestMapping(value = "api/lawdisputetransfer")
//@Api(value = "企业法律纠纷案件 对外", tags = "企业法律纠纷案件 对外")
//public class LawDisputeTransferController {
//
//    @Autowired
//    private IBankKeyService bankKeyService;
//
//    @Autowired
//    private ILawDisputeTransferService lawDisputeTransferService;
//
//    /**
//     * 历史数据 企业法律纠纷案件
//     * @param dataPlatSign
//     * @return
//     */
//    @PostMapping(value = "/old-summary-list")
//    @PassToken
//    @AppKeySign
//    public R<List<LawDisputeSummary>> oldSummaryList(@RequestBody DataPlatSign dataPlatSign){
//        String appId = dataPlatSign.getAppId();
//        BankKey bankKey = bankKeyService.getOne(Wrappers.<BankKey>lambdaQuery().eq(BankKey::getAppId, appId));
//        String topGroupId = bankKey.getTopGroupId();
//        return R.data(lawDisputeTransferService.oldSummaryList(topGroupId));
//    }
//
//    /**
//     * 旧数据的重大法律诉讼及仲裁案件
//     * @param dataPlatSign
//     * @return
//     */
//    @PostMapping(value = "/old-arbitration-list")
//    @PassToken
//    @AppKeySign
//    public R<List<MlegalProceedingsArbitration>> oldArbitrationList(@RequestBody DataPlatSign dataPlatSign){
//        String appId = dataPlatSign.getAppId();
//        BankKey bankKey = bankKeyService.getOne(Wrappers.<BankKey>lambdaQuery().eq(BankKey::getAppId, appId));
//        String topGroupId = bankKey.getTopGroupId();
//        return R.data(lawDisputeTransferService.oldArbitrationList(topGroupId));
//    }
//
//    /**
//     * 法律纠纷案件
//     * @param dataPlatSign
//     * @return
//     */
//    @PostMapping(value = "/law-dispute-list")
//    @PassToken
//    @AppKeySign
//    public R<List<LawDispute>> lawDisputeList(@RequestBody DataPlatSign dataPlatSign){
//        String appId = dataPlatSign.getAppId();
//        BankKey bankKey = bankKeyService.getOne(Wrappers.<BankKey>lambdaQuery().eq(BankKey::getAppId, appId));
//        String topGroupId = bankKey.getTopGroupId();
//        return R.data(lawDisputeTransferService.lawDisputeList(topGroupId));
//    }
//}
